package com.platform.modules.sys.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("SYS_DEPT")
public class SysDeptEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value="部门ID",example="")
	@TableId
	private String deptId;
	
	
	@ApiModelProperty(value="部门名称",example="")
	private String name;
	
	@ApiModelProperty(value="机构编号/项目ID",example="")
	private String orgNo;
	
	
	@ApiModelProperty(value="父部门",example="")
	private String parentId;
	
	
	@ApiModelProperty(value="子部门",example="")
	@TableField(exist = false)
	private List<SysDeptEntity> children = new ArrayList<>();
	
}
